package models


type Type struct {
	Id       int64    `json:"id" orm:"pk;auto"`
	TypeName string `json:"type_name" orm:"unique"`
	Blogs 	 []*Blog `orm:"reverse(many)"` //反向多对多
}

func (u *Type) TableName() string {
	return TableName("type")
}
